package api

import akka._
import akka.stream.scaladsl._
import com.lightbend.lagom.scaladsl.api._

/**
 * Created by yz on 4/7/2020
 */
trait HelloWorldStreamService extends Service {

  def stream: ServiceCall[Source[String, NotUsed], Source[String, NotUsed]]

  override def descriptor: Descriptor = {
    import Service._
    named("hello-world-stream").withCalls(
      namedCall("stream", stream)
    ).withAutoAcl(true)

  }


}
